\subsection{log.c File Reference}
\label{log_8c}\index{log.c@{log.c}}


Logging functions.  


{\ttfamily \#include $<$config.h$>$}\par
{\ttfamily \#include $<$hal.h$>$}\par
{\ttfamily \#include $<$log.h$>$}\par
{\ttfamily \#include $<$types.h$>$}\par
\subsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf log\_\-init} (void)
\item 
void {\bf log\_\-add} ({\bf iu8} tag, {\bf iu8} $\ast$data, {\bf iu8} len)
\end{DoxyCompactItemize}
\subsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
{\bf iu16} {\bf dst} = LOG\_\-START+2
\item 
{\bf bool} {\bf log\_\-enable}
\begin{DoxyCompactList}\small\item\em Enables/disables logging. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Logging functions. \begin{DoxyParagraph}{Id:}
\doxyref{log.c}{p.}{log_8c},v 1.6 2002/12/22 15:42:55 m Exp 
\end{DoxyParagraph}


\subsubsection{Function Documentation}
\index{log.c@{log.c}!log\_\-add@{log\_\-add}}
\index{log\_\-add@{log\_\-add}!log.c@{log.c}}
\paragraph[{log\_\-add}]{\setlength{\rightskip}{0pt plus 5cm}void log\_\-add (
\begin{DoxyParamCaption}
\item[{{\bf iu8}}]{ tag, }
\item[{{\bf iu8} $\ast$}]{ data, }
\item[{{\bf iu8}}]{ len}
\end{DoxyParamCaption}
)}\hfill\label{log_8c_a64f46662eb3519134cbf133a11ab3fca}


References dst, hal\_\-eeprom\_\-write(), log\_\-enable, and LOG\_\-START.

\index{log.c@{log.c}!log\_\-init@{log\_\-init}}
\index{log\_\-init@{log\_\-init}!log.c@{log.c}}
\paragraph[{log\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void log\_\-init (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\hfill\label{log_8c_a2508fad025e49f9746b6c178dce6917e}


References dst, hal\_\-eeprom\_\-write(), log\_\-enable, and LOG\_\-START.



Referenced by main().



\subsubsection{Variable Documentation}
\index{log.c@{log.c}!dst@{dst}}
\index{dst@{dst}!log.c@{log.c}}
\paragraph[{dst}]{\setlength{\rightskip}{0pt plus 5cm}{\bf iu16} {\bf dst} = LOG\_\-START+2}\hfill\label{log_8c_a3c30da82b7bc91b5520d2fb84ffeb4dd}


Referenced by log\_\-add(), and log\_\-init().

\index{log.c@{log.c}!log\_\-enable@{log\_\-enable}}
\index{log\_\-enable@{log\_\-enable}!log.c@{log.c}}
\paragraph[{log\_\-enable}]{\setlength{\rightskip}{0pt plus 5cm}{\bf bool} {\bf log\_\-enable}}\hfill\label{log_8c_a47528543f9fdf3d4eda64b9e1fddcb7e}


Enables/disables logging. 

This must be set the TRUE, before any log\_\-add has an effect. It can be also changed in between to switch off and on logging to reduce unwanted data in the logging area. 

Referenced by log\_\-add(), and log\_\-init().

